import Vue from 'vue'
import Router from 'vue-router'
import Login from '../components/Login'
import Port_company_login from '../components/Port_company_login'
import Port_company_home from "../components/Port_company_home";
import Port_company_manger from "../components/Port_company_manger";
import House_manger from "../components/House_manger";
import Goods_company_manger from "../components/Goods_company_manger";
import In_house_manger from "../components/In_house_manger";
import Out_house_manger from "../components/Out_house_manger";
import Cost from "../components/Cost";


Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'Login',
      component: Login,
    },
    {
      path: '/port_company_login',
      name: 'Port_company_login',
      component: Port_company_login,
    },

    {
      path: '/port_company_home',
      name: 'Port_company_home',
      component: Port_company_home,
      children :[
        {
          path: '/port_company_manger',
          name: 'Port_company_manger',
          component: Port_company_manger,
        },
        {
          path: '/goods_company_manger',
          name: 'Goods_company_manger',
          component: Goods_company_manger,
        },
        {
          path: '/house_manger',
          name: 'House_manger',
          component: House_manger,
        },
        {
          path: '/in_house_manger',
          name: 'In_house_manger',
          component: In_house_manger,
        },
        {
          path: '/out_house_manger',
          name: 'Out_house_manger',
          component: Out_house_manger,
        },
        {
          path: '/cost',
          name: 'Cost',
          component: Cost,
        }
      ]
    },
  ]
})
